from django.db import models
from django.contrib.auth.models import User

class Note(models.Model):
    user = models.ForeignKey(User)
    body = models.TextField()
    created = models.DateTimeField()
    updated = models.DateTimeField()
    
    def __repr__(self):
        return 'Note %s by %s' % (self.id, self.user)
